<h1>Danh sách trang</h1>
	<div class="content_block">
		<div class="form_tbl" id="slides">
			
		
				<span class="border_d clearfix">
                		<table cellpadding="0" cellspacing="0" width="100%">
                        	<tr>
                            <td class="form_item" width="10" align="center">STT</td>
                            <td class="form_item" align="left">Tên trang</td>
                            <td class="form_item" width="120" align="center"></td>
                            </tr>
<?php
$arr	=	$db->database("p_id,p_title,p_status","pages","p_id!=0");
for($i=0;$i<count($arr);$i++) {
?>
                        	<tr>
                            <td class="form_item" width="10" align="center"><?=$arr[$i][0];?></td>
                            <td class="form_item" align="left"><?=$arr[$i][1];?></td>
                            <td class="form_item" width="120" align="center"><a href="index.php?ipos=pages&mode=edit&ipid=<?=$arr[$i][0];?>">Sửa</a> / <a href="index.php?ipos=pages&mode=delete&ipid=<?=$arr[$i][0];?>"  onClick="return ask()">Xóa</a></td>
                            </tr>
<? } ?>
                        </table>
				</span>

			</div>
		</div>
<script>
function ask(){
	if (confirm("Bạn có chắc chắn muốn xóa trang này")) return true;
	return false ;
}
</script>